﻿<script src="scripts/myticketsHoli.js?v=1.4"></script>
<script src ="scripts/httpService.js"></script>
<div class="pageheader">
    <h2><i class="fa fa-hand-o-up"></i> 假期班车管理 <span>已定车票</span></h2>
</div>
<div class="contentpanel" ng-app="myticketsHoliApp" ng-controller="myticketsHoliCtrl">
    <div class="row xg-content xg-staff">
        <div class="col-xs-12">
            <div class="btn-group fl">
                <button type="button" class="btn btn-success" ng-click="refreshTicket()">
                    <span class="glyphicon glyphicon-refresh"></span> 刷新
                </button>
                <button ng-disabled="!deleteEable" type="button" class="btn btn-danger" ng-click="deleteTicket()">
                    <span class="glyphicon glyphicon-trash"></span> 取消订票
                </button>
            </div>
            <div class="xg-search fr">
                <div class="input-group">
                    <div class="input-group-addon">车票类型</div>
                    <select class="form-control" ng-options="type.name for type in ticketTypes" ng-model="selectedType" ng-change="selectedChange(selectedType)">
                    
                    </select>
                </div>
            </div>
            <table class="table table-striped table-hover">
                <tr>
                    <th>选择</th>
                    <th>id</th>
                    <th>车号</th>
                    <th>座位号</th>
                    <th>乘坐人</th>
                    <th>发车时间</th>
                    <th>路线</th>
                    <th>订票时间</th>
                   
                </tr>
                <tr ng-repeat="Ticket in Tickets" ng-click="selectChange($index)">
                    <td>
                        <input type="checkbox" ng-model="Ticket.checked" />
                    </td>
                    <td ng-bind="Ticket.id"></td>
                    <td>{{Ticket.busNumber+'号车'}}</td>
                    <td ng-bind="Ticket.seatNumber"></td>
                    <td ng-bind="Ticket.seatName"></td>                   
                    <td ng-bind="Ticket.date"></td>
                    <td ng-bind="Ticket.routeName"></td>
                    <td ng-bind="Ticket.ticketDate"></td>
                    
                </tr>

            </table>
        </div>
    </div>

    <script type="text/ng-template" id="modifyStaff">
        <div class='modal-content'  >

            <div class='modal-header'>
                <button type='button' class='close' data-dismiss='modal' ng-click="close()" >&times;</button>
                <h2 class='modal-title' style="padding-left:40%" id='addParkLabel'>职工信息</h2>
            </div>

            <div class='modal-body '>
                <form class='form-horizontal' role='form'>
                    <div class="panel panel-info">
                        <div class="panel-heading">
                            <h3 class="panel-title">
                                基本信息
                            </h3>
                        </div>
                        <div class="panel-body">
                            <div class='form-group '>
                                <div class="col-sm-2 ">
                                    <label class='control-label' style="float:right">姓名</label>
                                </div>
                                <div class='col-sm-4'>
                                    <input type='text' class='form-control' ng-model="mstaff.name" placeholder='请输入姓名'/>
                                </div>
                                <div class="col-sm-2 ">
                                    <label class='control-label' style="float:right" >手机号</label>
                                </div>
                                <div class='col-sm-4'>
                                    <input type='text' class='form-control' ng-model="mstaff.phone" placeholder='请输入手机号'/>
                                </div>
                            </div>

                            <div class='form-group '>
                                <div class="col-sm-2 ">
                                    <label class='control-label' style="float:right">密码</label>
                                </div>
                                <div class='col-sm-4'>
                                    <input type='password' class='form-control' ng-model="mstaff.password" placeholder='请输入密码'/>
                                </div>
                                <div class="col-sm-2 ">
                                    <label class='control-label' style="float:right" >科室</label>
                                </div>
                                <div class='col-sm-4'>
                                    <select class="form-control" ng-options="d.id as d.name for d in departments" ng-model="mstaff.departmentid"></select>
                                </div>
                            </div>

                            <div class='form-group '>
                                <div class="col-sm-2 ">
                                    <label class='control-label' style="float:right">性别</label>
                                </div>
                                <div class='col-sm-4'>
                                    <select class="form-control" ng-options="s.id as s.sex for s in sexes" ng-model="mstaff.sex"></select>
                                </div>
                                <div class="col-sm-2 ">
                                    <label class='control-label' style="float:right" >级别</label>
                                </div>
                                <div class='col-sm-4'>
                                    <select class="form-control" ng-options="l.id as l.name for l in levels" ng-model="mstaff.level"></select>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="panel panel-danger">
                        <div class="panel-heading">
                            <h3 class="panel-title">
                                附加信息
                            </h3>
                        </div>
                        <div class="panel-body">

                            <div class='form-group '>
                                <div class="col-sm-2 ">
                                    <label class='control-label' style="float:right">状态</label>
                                </div>
                                <div class='col-sm-4'>
                                    <select class="form-control" ng-options="s.id as s.status for s in statuses" ng-model="mstaff.status"></select>
                                </div>
                                <div class="col-sm-2 ">
                                    <label class='control-label' style="float:right" >是否冻结</label>
                                </div>
                                <div class='col-sm-4'>
                                    <select class="form-control" ng-options="st.id as st.Eabled for st in staffIsEabled" ng-model="mstaff.iseabled"></select>
                                </div>
                            </div>

                            <div class='form-group '>
                                <div class="col-sm-2 ">
                                    <label class='control-label' style="float:right">最后登录时间</label>
                                </div>
                                <div class='col-sm-4'>
                                    <input type='text' class='form-control' ng-model="mstaff.lastlogindate" placeholder='最后登录时间'/>
                                </div>
                                <div class="col-sm-2 ">
                                    <label class='control-label' style="float:right" >最后登录IP</label>
                                </div>
                                <div class='col-sm-4'>
                                    <input type='text' class='form-control' ng-model="mstaff.lastloginip" placeholder='最后登录IP'/>
                                </div>
                            </div>

                            <div class='form-group '>
                                <div class="col-sm-2 ">
                                    <label class='control-label' style="float:right">备注</label>
                                </div>
                                <div class="col-sm-10 ">
                                    <input type='text' class='form-control' ng-model="staff.other" placeholder='填写备注信息'/>
                                </div>
                            </div>
                </form>
            </div>
        </div>

        <div class="alert alert-info" ng-show="loading || submitted">
            <span  ng-show='loading' > <i class="fa fa-spinner"></i></span>
            <span ng-show='submitted'>{{result}}</span>
        </div>

        </div>
        <div class='modal-footer'>
            <button type='button' class='btn btn-default' id="modalCloseBtn" data-dismiss='modal' ng-click="close()">关闭</button>
            <button id="submitParkBtn" type='button' ng-click="submit()" class='btn btn-primary'>提交</button>
        </div>

        </div>

    </script>
</div><!-- contentpanel -->

</div><!-- mainpanel -->
<script src="js/xg_js.js"></script>
<script>
    createMenu(4);
</script>
